package org.linuxsogood.boot.config;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.http.HttpStatus;

/**
 * @author honway.liu
 * @date 2018/8/5 下午9:59
 * @email gm100861@gmail.com
 * @blog http://linuxsogood.org
 */
@Data
@NoArgsConstructor
public class ApiResponse {

    private int code = HttpStatus.OK.value();

    private String message = HttpStatus.OK.getReasonPhrase();

    private Object data;

    public ApiResponse(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
